//
//  HSPCommentCell.m
//  Icar
//
//  Created by dllo on 15/10/19.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "HSPCommentCell.h"
#import "BaseHeader.h"
@implementation HSPCommentCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creat];
    }
    return self;
}
- (void)creat
{
//    @property (nonatomic,strong)UILabel *contentLabel;
//    @property (nonatomic,strong)UILabel *floorLabel;
//    @property (nonatomic,strong)UILabel *timeLabel;
//    @property (nonatomic,strong)UILabel *nameLabel;
    
    self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(ADJUSTWIDTH * 15, 0, ADJUSTWIDTH * 240, ADJUSTHEIGHT * 50)];
    self.nameLabel.font =[UIFont systemFontOfSize:16. * ADJUSTWIDTH];
    self.nameLabel.numberOfLines = 0;
    self.nameLabel.textColor = [UIColor blueColor];
    [self.contentView addSubview:self.nameLabel];
    
    self.contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(ADJUSTWIDTH * 15, 27 * ADJUSTWIDTH, ADJUSTWIDTH * 280, ADJUSTHEIGHT * 50)];
    self.contentLabel.font =[UIFont systemFontOfSize:17. * ADJUSTWIDTH];
    self.contentLabel.numberOfLines = 0;
    self.contentLabel.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.contentLabel];
    
    self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(ADJUSTWIDTH * 15, ADJUSTHEIGHT * 70, ADJUSTWIDTH * 220, ADJUSTHEIGHT * 25)];
    self.timeLabel.font =[UIFont systemFontOfSize:14. *ADJUSTWIDTH];
    self.timeLabel.textColor = [UIColor grayColor];
    self.timeLabel.numberOfLines = 0;
    [self.contentView addSubview:self.timeLabel];
    
    self.floorLabel = [[UILabel alloc]initWithFrame:CGRectMake(ADJUSTWIDTH * 315, ADJUSTHEIGHT * 30, ADJUSTHEIGHT * 80, ADJUSTHEIGHT * 30 )];
    self.floorLabel.font =[UIFont systemFontOfSize:14. * ADJUSTWIDTH];
    self.floorLabel.textColor = [UIColor grayColor];
    self.floorLabel.numberOfLines = 0;
    [self.contentView addSubview:self.floorLabel];
    
    
}
- (void)getFloorMessage:(HSPImageAppreciate *)model
{
    
    self.nameLabel.text = model.name;
    self.contentLabel.text = [NSString stringWithFormat:@"%@",model.content];
    self.timeLabel.text = [NSString stringWithFormat:@"%@",model.time];
    self.floorLabel.text = [NSString stringWithFormat:@"%@楼",model.floor];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
